﻿@model IEnumerable<MobileWebsiteGenerator.Entities.Customer>
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<link href="../../content/css/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script src="../../content/js/jquery.autocomplete.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#searchtxt").autocomplete("/Admincustomer/getAjaxResult/");
    });
</script>
<h2>
    Our Customers</h2>
<table>
    <tr>
        <th>
            User Name
        </th>
        <th>
            Email
        </th>
        <th>
            Phone
        </th>
        <th>
            Active
        </th>
        <th>
            Options
        </th>
    </tr>
  @*  <form action="/Admincustomer/Search" method="post">
    <input type="text" id="searchtxt" name="searchtxt" value=" " />
    <input type="submit" name="name" value="Search" />
    </form>*@
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.UserName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.phone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Customer_id }) |
                @Html.ActionLink("Customer Website", "customerWebsite", new { id = item.Customer_id })
                @Html.ActionLink("Create New", "index", "ThemeDetails", new { id = item.Customer_id }, null)
            </td>
        </tr>
    }
</table>
